package com.meitun.mama.ui.main;

import android.support.v4.view.ViewPager;

import com.meitun.mama.R;
import com.meitun.mama.inject.InjectView;
import com.meitun.mama.ui.BaseFragment;

/**
 * Created by sunny01 on 2016/3/27.
 */
public class MainFragment extends BaseFragment {

    @InjectView(R.id.main_frg_pager)
    private ViewPager main_frg_pager;

    private CommonStatePagerAdapter adapter;

    @Override
    protected int getLayoutId() {
        return R.layout.main_frg;
    }

    @Override
    protected void initView() {
        adapter = new CommonStatePagerAdapter(getChildFragmentManager());
        main_frg_pager.setAdapter(adapter);
    }
}
